//
//  JiBenXinXiTableViewCell.m
//  跨界收
//
//  Created by Allen on 2018/11/12.
//  Copyright © 2018年 gztx. All rights reserved.
//

#import "JiBenXinXiTableViewCell.h"

@implementation JiBenXinXiTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    [self.customTextField addTarget:self action:@selector(textfieldTextDidChange:) forControlEvents:UIControlEventEditingChanged];
    // Initialization code
}
#pragma mark - private method
- (void)textfieldTextDidChange:(UITextField *)textField {
    if (self.block) {
        self.block(self.customTextField.text);
    }
}


- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [self.customTextField becomeFirstResponder];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
